package service;

/**
 * Desc:
 * @author: lisha 2018/6/14 9:29
 */
public class Main {

    synchronized public void serviceMethod(){
        try {
            System.out.println("in main 下一步 sleep begin threadName="
                    + Thread.currentThread().getName() + " time="
                    + System.currentTimeMillis());
            Thread.sleep(5000);

            System.out.println("in main 下一步 sleep end threadName="
                    + Thread.currentThread().getName() + " time="
                    + System.currentTimeMillis());

        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
